
<input type="hidden" id="searchProperty" name="searchProperty" value="${searchProperty!}" />
<input type="hidden" id="orderProperty" name="orderProperty" value="${orderProperty!}" />
<input type="hidden" id="orderDirection" name="orderDirection" value="${orderDirection!}" />

<#if page??&&page.totalPages gt 1 >
<input type="hidden" id="pageSize" name="pageSize" value="${(page.pageSize)!20}" />
	<div class="pagination">
		<#if page.hasPre>
			<a class="firstPage" href="javascript: $.pageSkip(1);">&nbsp;</a>
		<#else>
			<span class="firstPage">&nbsp;</span>
			
		</#if>
		<#if page.hasPre>
			<a class="previousPage" href="javascript: $.pageSkip(${page.prePage});">&nbsp;</a>
		<#else>
			<span class="previousPage">&nbsp;</span>
		</#if>
		<#if page.totalPages lte 5>
			<#list 1..page.totalPages as p>
						<#if p==page.pageNo>
							<span class="currentPage">${p}</span>
						<#else>
							<a href="javascript: $.pageSkip(${p});">${p}</a>	
						</#if>
			</#list>
		<#else>
			<#if page.pageNo lte 3>
					<#list 1..5 as p>
						<#if p==page.pageNo>
							<span class="currentPage">${p}</span>
						<#else>
							<a href="javascript: $.pageSkip(${p});">${p}</a>	
						</#if>
					</#list>
					<span class="pageBreak">...</span>		
			</#if>
			<#if (page.pageNo+2) gte page.totalPages>
					<span class="pageBreak">...</span>
					<#list (page.totalPages-5)..page.totalPages as p>
						<#if p==page.pageNo>
							<span class="currentPage">${p}</span>
						<#else>
							<a href="javascript: $.pageSkip(${p});">${p}</a>	
						</#if>
					</#list>		
			</#if>
			<#if !((page.pageNo+2) gte page.totalPages)&&!(page.pageNo lte 3)>
					<span class="pageBreak">...</span>
					<#list (page.pageNo-2)..(page.pageNo+2) as p>
						<#if p==page.pageNo>
							<span class="currentPage">${p}</span>
						<#else>
							<a href="javascript: $.pageSkip(${p});">${p}</a>	
						</#if>
					</#list>
					<span class="pageBreak">...</span>		
			</#if>
		</#if>
		<#if page.hasNext>
			<a class="nextPage" href="javascript: $.pageSkip(${page.nextPage});">&nbsp;</a>
		<#else>
			<span class="nextPage">&nbsp;</span>
		</#if>
		<#if page.hasNext>
			<a class="lastPage" href="javascript: $.pageSkip(${page.totalPages});">&nbsp;</a>
		<#else>
			<span class="lastPage">&nbsp;</span>
			
		</#if>
		<span class="pageSkip">
			共${page.totalPages}页  当前到第<input id="pageNumber" name="pageNumber" value="${page.pageNo}" maxlength="9" onpaste="return false;" /><button type="submit">&nbsp;</button>
		</span>
	</div>
<#else>
		<input type="hidden" id="pageSize" name="pageSize" value="${(page.pageSize)!20}" />
		<div class="pagination">
		<span class="pageSkip">
			共1页  当前到第<input id="pageNumber" name="pageNumber" value="1" maxlength="9" onpaste="return false;" /><button type="submit">&nbsp;</button>
		</span>
		</div>
</#if>